package com.springboot1.service.impl;

import com.springboot1.dao.UsersDao;
import com.springboot1.pojo.Users;
import com.springboot1.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("usersService")
public class UsersServiceImpl implements UsersService {
    //@Resource
    @Autowired
    private UsersDao usersDao;

    public List<Users> getUsersList() {

        return usersDao.getUsersList();
    }

    public Users getUsersById(Integer userid) {
        return usersDao.getUsersById(userid);
    }
}
